<?php
/**
* @version		$Id: helper.php 11668 2009-03-08 20:33:38Z willebil $
* @package		Joomla
* @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

class modViewhrHelper
{
	function getList() {
		//$vars['limit']		= (int) $params->get( 'count', 1 );
		$db			= & JFactory::getDBO();
		$query = 'SELECT *'
					. ' FROM #__users'
					. ' WHERE id > 62';

		$db->setQuery($query, 0);

		$rows = $db->loadObjectList();
		//$db->setQuery( $query );
		//$count = $db->loadResult();
		//echo ("fsdfsdf".$count);
		$i		= 0;
		$lists	= array();
		foreach ( $rows as $row )
		{
			$lists[$i]->id = $row->id;
			$lists[$i]->name = $row->name;
			$lists[$i]->email = $row->email;
			$lists[$i]->birthday = $row->birthday;
			$lists[$i]->beginDay = $row->beginDay;
			$lists[$i]->address = $row->address;
			$lists[$i]->mobile = $row->mobile;
			$lists[$i]->taxCode = $row->taxCode;
			$lists[$i]->salaryIndex = $row->salaryIndex;
			$lists[$i]->roomCode = $row->roomCode;
			$lists[$i]->position = $row->position;
			
			$i++;
		}
		return $lists;
	}
}
